<h2>Upload</h2>

Type in the directory location of the images:

<form action="index.php?show=upload" method="post" name="directory" target="_self">
	<input name="url" type="text" size="60" />
	<input name="set" type="submit" value="Select" />
</form>

<p><br>
  E.g. c:\Pictures\</p>
<br />

<?php

if(isset($_POST['url'])) {
	$url = $_POST['url'];
	print "You set the directory: \"".$url."\""; 
	print "<br><br>";
	print "Images will now be prosessed...";
	
	# connect to DB
	$conn = connectDB();
	
	# add slashes
	$url2 = addcslashes($url,'\\');
	
	# insert into DB
	$res = mysql_query("UPDATE settings SET dir = '".$url2."' WHERE id = 1");
	
	#echo "<br>".$res;
	
	closeDB($conn);
}

?>